package com.zhen.aikan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhen.aikan.entity.Advertising;
import com.zhen.aikan.mapper.AdvertisingMapper;
import com.zhen.aikan.service.IAdvertisingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lijiazhen
 * @since 2023-09-11
 */
@Service
public class AdvertisingServiceImpl extends ServiceImpl<AdvertisingMapper, Advertising> implements IAdvertisingService {

    @Override
    public List<Advertising> getAdByType(String type) {
        return baseMapper.selectList(new QueryWrapper<Advertising>().eq("type", type));
    }

}
